home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Computer Life 1997 February
/
Computer Life February 1997.iso
/
TELME
/
COMMS
/
DMOD0011.SRP
< prev
next >
Wrap
Text File
|
1996-06-04
|
4KB
|
209 lines
rem Copyright (c) PhoneLink plc
rem direct connect script (8/10/95)DMOD0011.srp
rem Changes to version 2 include faster disconnect methods
rem and general fine tuning of timeouts!
rem dacom gold card V32bis
label InitDevice
echo off
flush
echo script[56]
send "atchar(13)"
timeout 2,modem_fail
find "OK"
label OffToGate
rem Offline to Gate (also contains Pad to Gate)
echo off
flush
echo script[57]
send "at{InitModemStr}char(13)"
timeout 2,modem_fail
find "OK"
send "atd{DialMode}^{PreTel}{SiteTel}{PostFix}char(13)"
echo script[52]...
timeout {DialTimeout},connect_fail
finderr 0,BUSY,busy
finderr 103,NO DIALTONE,connect_fail
finderr 0,NO CARRIER,no_carrier
find "CONNECT"
echo script[53]
send "char(13)"
timeout 2,Bad_PadPrompt
finderr 0,PAD>,Good_PadPrompt
find "ZZZ"
label Bad_PadPrompt
echo script[58]
send "char(13)"
timeout 2,pad_fail
find "PAD>"
label Good_PadPrompt
label PadToGate
echo off
send "SER{SUB}char(13)"
timeout 2,nua_bad1
finderr 0,COM,nua_good
find "ZZZ"
label nua_bad1
send "SER{SUB}char(13)"
timeout 2,nua_bad2
finderr 0,COM,nua_good
find "ZZZ"
label nua_bad2
send "SER{SUB}char(13)"
timeout 2,nua_fail
find "COM"
label nua_good
echo script[54].
end
label GateToPad
echo off
send "char(16)CLRchar(13)"
timeout 2,ctrl_p_clear_fail
find "CONF"
echo script[91]...
end
label GateToOff
label PadToOff
echo off
send "+"
mwait 100
send "+"
mwait 100
send "+"
timeout 2,hang_fail_retry
find "OK"
echo script[97]
send "at{TermModemStr}char(13)"
rem The following arises as a result of the inability
rem of the gold card to disconnect cleanly when talking
rem to the PSL over MNP4.
wait 1
send "a"
timeout 1,no_ok
finderr 0,OK,good_ok
find "zz"
label good_ok
echo script[99].
end
label modem_offline
echo off
send "+"
mwait 100
send "+"
mwait 100
send "+"
timeout 2,hang_fail_retry
find "OK"
echo script[97]
send "at{TermModemStr}char(13)"
rem The following arises as a result of the inability
rem of the gold card to disconnect cleanly when talking
rem to the PSL over MNP4.
wait 1
send "a"
timeout 1,fno_ok
finderr 0,OK,fgood_ok
find "zz"
label fgood_ok
echo script[99].
abort
label fno_ok
wait 1
send "a"
timeout 1,fno_ok_2
finderr 0,OK,fgood_ok
finderr 0,NO CARRIER,fgood_ok
find "zz"
abort
label fno_ok_2
wait 1
send "a"
timeout 1,fno_ok_3
finderr 0,OK,fgood_ok
finderr 0,NO CARRIER,fgood_ok
find "zz"
abort
label fno_ok_3
wait 1
send "a"
timeout 1,hang_fail
finderr 0,OK,fgood,ok
finderr 0,NO CARRIER,fgood_ok
find "zz"
abort
label no_ok
wait 1
send "a"
timeout 1,no_ok_2
finderr 0,OK,good_ok
finderr 0,NO CARRIER,good_ok
find "zz"
abort
label no_ok_2
wait 1
send "a"
timeout 1,no_ok_3
finderr 0,OK,good_ok
finderr 0,NO CARRIER,good_ok
find "zz"
abort
label no_ok_3
wait 1
send "a"
timeout 1,hang_fail
finderr 0,OK,good,ok
finderr 0,NO CARRIER,good_ok
find "zz"
abort
label hang_fail_retry
send "at{TermModemStr}char(13)char(13)"
timeout 2,hang_fail
finderr 0,NO CARRIER,fgood_ok
find "OK"
echo script[99].
abort
label hang_fail
echo script[98].
abort
label modem_fail
echo script[23]
goto modem_offline
label connect_fail
echo script[1]
goto modem_offline
label busy
echo script[2]
goto modem_offline
label no_carrier
echo script[3]
goto modem_offline
label nua_fail
echo script[22]
goto modem_offline
label ctrl_p_clear_fail
echo script[14]
goto modem_offline
label command_mode_fail
echo script[15]
goto modem_offline